package com.hst.capacity.infra.persistence.jpa.setting.franchisee;

import com.hst.capacity.domain.model.entity.setting.franchisee.OrderPoolSwicthEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface OrderPoolSwicthRepository extends JpaRepository<OrderPoolSwicthEntity, String> {

    List<OrderPoolSwicthEntity> findByIdFranchisee(String idFranchisee);

    @Query("select t from OrderPoolSwicthEntity t where t.idOrderPoolSwicth = ?1")
    OrderPoolSwicthEntity findByIdOrderPoolSwicth(String id);

}
